<template>
  <view style="height: 100%">
    <scroll-view class="flex-1" scroll-y style="padding-bottom: 120upx">
      <u-parse :html="detail"></u-parse>
    </scroll-view>
    <view class="bottom bg-fff">
      <u-button type="primary" :custom-style="customStyle121"
                open-type="contact"
                shape="circle">在线沟通</u-button>
    </view>
  </view>
</template>

<script>
import {THEME} from "../mixins/config";
import {request} from "../../util/api";

export default {
  data() {
    return {
      current_id: '',
      customStyle121: {
        background: THEME.btn_active_bg_color,
        padding: '0 30rpx',
        width: '90%'
      },
      detail: ''
    }
  },
  onLoad(option) {
    request({
      url: '/app/index/new/info',
      token: true
    }).then(res => {
      const current = res.data.homeList.find(item => item.id == option.homeListTouchId)
      this.detail = current.homeDesc
      uni.setNavigationBarTitle({
        title: current.title
      });
    })
  },
  onShareAppMessage(res) {

  }
}
</script>

<style scoped>
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20upx 0;
}
</style>
